package org.itboys.core.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Auther: 罗尧坤
 * Date: 2018/8/14
 * Description: 消息中心
 */
@Entity(value = "SundayCenterMessage", noClassnameStored = true)
public class SundayCenterMessage extends BaseMongoEntity {
    private Long    memberId;//用户id
    private String  memberName;//用户名
    private String  name;//标题
    private String  text;//内容
    private Integer status;//状态
    private Integer creation;//创建方式, 0 表示人工创建, 1 表示系统创建

    public SundayCenterMessage() {
    }

    public SundayCenterMessage(Long memberId, String memberName, String name, String text) {
        this.memberId = memberId;
        this.memberName = memberName;
        this.name = name;
        this.text = text;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCreation() {
        return creation;
    }

    public void setCreation(Integer creation) {
        this.creation = creation;
    }
}
